<?php
namespace Api\Model;

use Think\Model;

class RepairOrderModel extends Model
{


    /**添加订单
     * @param $data
     * @return array
     */
    public function add_repair_order($data)
    {
        if (M('RepairOrder')->add($data)) {
            return array(
                'status' => 'success',
                'message' => '新增成功',
                'jump' => U('AdminUser/index')
            );
        } else {
            return array(
                'status' => 'back',
                'message' => '新增失败'

            );
        }
    }
}
